package com.cskaoyan.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sun.istack.internal.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
    * 文件存储表
    */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Storage {

    private Integer id;

    private String key;
    @NotNull()
    private String name;

    private String type;

    private Integer size;

    private String url;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date addTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date updateTime;

    private Boolean deleted;
}